import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入 base.scss
import '@/assets/sass/base.scss'

// 导入 http.js 文件
import HttpPligin from '@/utils/http.js'

// 导入 UI
import 'element-ui/lib/theme-chalk/index.css'
import ElementUI from 'element-ui'

// 导入 echarts
import * as echarts from 'echarts'
// 挂载 echarts
Vue.prototype.$echarts = echarts

// 在 Vue 上挂载 HttpPligin
Vue.use(HttpPligin)

// 在 Vue 挂载 ElemUI
Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
